package com.ruzhe.keji.test.test;

public class testString {
    public static void main(String[] args) {
        String filename="52_2021-04-17-16-02_1.csv";
        int userId;
        String createTime;
        int videoId;
        String []arg=filename.split(".csv");

        String []arg1=arg[0].split("_");
        userId=Integer.parseInt(arg1[0]);
        createTime=arg1[1];
        videoId=Integer.parseInt(arg1[2]);
        System.out.println("userId: "+userId+" createTime: "+createTime+" videoId: "+videoId);
    }
}
